<template>
    <div>
        <div style="font-size:20px;margin-top:20px;">
            基本信息：
        </div>
            <div style="font-size:16px;margin-top:20px;color:green;margin-left:30px;">
                用户名：{{items.name}}
            </div>
            <div style="font-size:16px;margin-top:20px;color:green;margin-left:30px;">
                电话：{{items.phone}}
            </div>
    </div>
</template>


<script>
export default {
    data() {
        return {
            items:{},
        };
    },
    methods: {
         async fetch() {
      const res = await this.$http.get(`/user/infos/${sessionStorage.userid}`);
      this.items = res;
      console.log(res);
    },
        
    },
    created() {
         this.fetch();
        
    },
}
</script>